/*
 * @Author: chendeji
 * @Date: 2021-11-16 20:27:11
 * @LastEditTime: 2021-11-28 09:57:54
 * @Description: 
 * @FilePath: \copy_gsy_github_app_flutter\lib\page\main\behavior\dynamic_list_request.dart
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
 */

import 'package:copy_gsy_github_app_flutter/common/behavior/base_load_data_behavior.dart';
import 'package:copy_gsy_github_app_flutter/common/behavior/i_loading_behavior.dart';
import 'package:copy_gsy_github_app_flutter/repository/dao_result.dart';
import 'package:copy_gsy_github_app_flutter/repository/dynamic_repository.dart';

class RequestDynamicBehavior
    extends BaseDataLoadingBehavior<String, DataResult> {
  RequestDynamicBehavior({ILoadingBehavior? wrap}) : super(wrap: wrap);

  @override
  Future<DataResult> request() async {
    return await DynamicRepository.getDynamicList(parames, needDb: true);
  }
}
